/**
 * Team members:
 * HengXing Liu 2022229044
 * YiYang Zhang 2022229047
 * ZeJun Liu 2022229092
 */
package project;
/**
 * A class to handle division exception.
 * A division exception is thrown when
 * the divisor is equal to 0
 */
public class DivisionErrorException extends Exception{
    private String message;
    public DivisionErrorException(){
        this.message = "division by zero";
    }
    @Override
    public String getMessage() {
        return "Error: " + message;
    }
}
